# Contributor:
# Maintainer: nadvagauser <nadvagauser+alpine@proton.me>
pkgname=webp-pixbuf-loader
pkgver=0.2.7
pkgrel=0
pkgdesc="WebP Image format GdkPixbuf loader"
url="https://github.com/aruiz/webp-pixbuf-loader"
arch="all"
license="LGPL-2.0-or-later"
makedepends="
	gdk-pixbuf-dev
	libwebp-dev
	meson
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/aruiz/webp-pixbuf-loader/archive/refs/tags/$pkgver.tar.gz"

install_if="gdk-pixbuf-loaders libwebp"

build() {
	abuild-meson -Db_lto=true . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
d7abc791b6cdb93b47929e82fbf8b51e5da2848fa43ae65b68fb0505b4da765f938dd290a82d25598d1e5cf9e8f68d6c91a4da814b1194427b4917d03c935910  webp-pixbuf-loader-0.2.7.tar.gz
"
